package api02b;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo2 {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        c.add(new Point(1,1));
        c.add(new Point(2,1));
        c.add(new Point(3,1));
        c.add(new Point(4,1));
        c.add(new Point(5,1));
        System.out.println(c);

        Point p = new Point(1,1);
        System.out.println(c.contains(p));

        c.remove(p);
        System.out.println(c);


    }
}
